
public class Secretaria extends Treballador{
	private Executiu executiu;
	
	public Secretaria(String nom,String dni, String adreca){
		super(nom,dni,adreca);
	}
	public int calcularSalari(){
		return super.calcularSalari();
	}
	
	public void fixarExecutiu(Executiu executiu){
		this.executiu=executiu;
	}
	
	public Executiu obtenirExecutiu(){
		return this.executiu;
	}
	
	public boolean teExecutiu(){
		if (this.executiu!=null) return true;
		return false;
	}
}
